﻿using System;
using System.Collections.Generic;
using System.Text;
using NLBS.Entity;

namespace NLBS.Views
{
    /// <summary>
    /// 日志事件参数类
    /// </summary>
    public class ArticleEventArgs : EventArgs
    {
        public ArticleEventArgs() { }

        public ArticleEventArgs(Article article)
        {
            this._article = article;
          
        }

        private Article _article;
        /// <summary>
        /// 当前日志
        /// </summary>
        public Article CurrentArticle
        {
            get
            {
                
                return _article;
            }
            set
            {
                _article = value;
            }
        }

    }
    /// <summary>
    /// 当日志更新时触发事件的参数
    /// </summary>
    public class ArticleUpdateEventArgs : ArticleEventArgs
    {
        public ArticleUpdateEventArgs(Article article)
            : base(article)
        {
        }
    }

    /// <summary>
    /// 当日志删除时触发事件的参数
    /// </summary>
    public class ArticleDeleteEventArgs : ArticleEventArgs
    {
        public ArticleDeleteEventArgs(Article article)
            : base(article)
        {
        }
    }

    /// <summary>
    /// 当日志选中时触发事件的参数
    /// </summary>
    public class ArticleSelectEventArgs : ArticleEventArgs
    {
        public ArticleSelectEventArgs(Article article)
            : base(article)
        {
            
        }
    }

    /// <summary>
    /// 当日志添加插入时触发事件的参数
    /// </summary>
    public class ArticleInsertEventArgs : ArticleEventArgs
    {
        public ArticleInsertEventArgs(Article article)
            : base(article)
        {
        }
    }
}
